package com.imc.beans;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * WebimWrite entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "webim_write", catalog = "imcdbserver")
public class WebimWrite implements java.io.Serializable {

	// Fields

	private Integer num;
	private Integer src;
	private Integer dst;
	private short flag;
	private Integer webid;
	private Integer webflag;
	private String timestamp;
	private String message;

	// Constructors

	/** default constructor */
	public WebimWrite() {
	}

	/** full constructor */
	public WebimWrite(Integer src, Integer dst, short flag, Integer webid,
			Integer webflag, String timestamp, String message) {
		this.src = src;
		this.dst = dst;
		this.flag = flag;
		this.webid = webid;
		this.webflag = webflag;
		this.timestamp = timestamp;
		this.message = message;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "num", unique = true, nullable = false)
	public Integer getNum() {
		return this.num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	@Column(name = "src", nullable = false)
	public Integer getSrc() {
		return this.src;
	}

	public void setSrc(Integer src) {
		this.src = src;
	}

	@Column(name = "dst", nullable = false)
	public Integer getDst() {
		return this.dst;
	}

	public void setDst(Integer dst) {
		this.dst = dst;
	}

	@Column(name = "flag", nullable = false)
	public short getFlag() {
		return this.flag;
	}

	public void setFlag(short flag) {
		this.flag = flag;
	}

	@Column(name = "webid", nullable = false)
	public Integer getWebid() {
		return this.webid;
	}

	public void setWebid(Integer webid) {
		this.webid = webid;
	}

	@Column(name = "webflag", nullable = false)
	public Integer getWebflag() {
		return this.webflag;
	}

	public void setWebflag(Integer webflag) {
		this.webflag = webflag;
	}

	@Column(name = "timestamp", nullable = false, length = 20)
	public String getTimestamp() {
		return this.timestamp;
	}

	public void setTimestamp(String timestamp) {
		this.timestamp = timestamp;
	}

	@Column(name = "message", nullable = false, length = 16777215)
	public String getMessage() {
		return this.message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

}